package dongshi.daddy.visitor.visitor;

import dongshi.daddy.visitor.element.HumanSourceElement;
import dongshi.daddy.visitor.element.ProgrammerElement;
import dongshi.daddy.visitor.element.TesterElement;

public class SocialAppVisitor implements CorporateSlaveVisitor {
    @Override
    public void visit(ProgrammerElement programmer) {
        System.out.println(programmer.getName() + " 在社交应用中发挥作用了");
    }

    @Override
    public void visit(HumanSourceElement humanSource) {
        System.out.println(humanSource.getName() + " 在社交应用中发挥作用了");
    }

    @Override
    public void visit(TesterElement tester) {
        System.out.println(tester.getName() + " 在社交应用中发挥作用了");
    }
}